<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="col-md-3" style="border-top:5px solid #000000;border-left:5px solid #dedede;border-right: 1px solid #f7f7f7">
    <form class="form-search text-center" action="${pageContext.request.contextPath}/blog/toBlog" method="post">
        <form class="form-search form-inline">
            <input id="input" autocomplete="off" class="input-medium search-query" name="title" type="text"/>
            <button type="submit" class="btn">查找</button>
        </form>
    </form>
    <div class="col-md-3"></div>
    <div class="col-md-3"></div>
    <div class="col-md-3"></div>
    <div style="width: 200px" class="col-md-3" id="searchResult"></div>
    <div class="row-fluid clearfix"></div>
    <h3 class="text-left" style="color: #ffffff">
          友情链接.
    </h3>
        <div class="text-left">
            <%--循环输出链接信息--%>
            <ul>
              <c:if test="${sessionScope.chains!=null}">
                  <c:forEach items="${sessionScope.chains}" var="chain" >
                      <li>
                        <span class="textDivBg">
                            <h4 style="font-weight: bold"><a style="background: black;color: white" href="${chain.link}">${chain.chainName}</a></h4>
                            <c:if test="${sessionScope.user!=null}">
                                <%--可见这里的setfchain也是不对的--%>
                                <%--到时候记得改这--%>
                                <h5><a href="${pageContext.request.contextPath}/chain/setFirstChain/${chain.chainId}" style="color: white">置顶</a></h5>
                            </c:if>
                        </span>
                      </li>
                  </c:forEach>
              </c:if>
            </ul>
        </div>
        <h3 class="text-left" style="color: #ffffff">
        博客分类.
    </h3>
        <div class="text-left">
            <%--循环输出分类信息--%>
        <ul>
           <c:if test="${sessionScope.catalogues!=null}">
               <c:forEach items="${sessionScope.catalogues}" var="catalogue" varStatus="catalogueStatus">
                   <li id="showCata${catalogueStatus.index+1}li">
                    <span>
                        <h4 style="font-weight: bold"><a href="javascript:void (0)" style="color: white;background: black" id="showCata${catalogueStatus.index+1}" onclick="showCata(this.id)">${catalogue.catalogueName}</a></h4>
                    </span>

                       <%--这里将要通过ajax传入值--%>

                   </li>
               </c:forEach>
           </c:if>
        </ul>
    </div>
</div>
